﻿using System;
using System.Collections.Generic;
using System.Text;
using CFSystem.JXC.Model;

namespace CFSystem.JXC.IDAL
{
    public interface IProdCatergory
    {
        /// <summary>
        /// Method to get all ProdCatergoryInfo
        /// </summary>		
        /// <returns>Interface to Model Collection Generic of categories</returns>
        IList<ProdCatergoryInfo> GetProdCatergorys();

        /// <summary>
        /// Get information on a specific category
        /// </summary>
        /// <param name="categoryId">Unique identifier for a category</param>
        /// <returns>Business Entity representing an category</returns>
        ProdCatergoryInfo GetProdCatergory(string ProdCatergoryID);

        /// <summary>
        /// insert
        /// </summary>
        /// <param name="ProdCatergoryName"></param>
        void InsertProdCatergory(string parentName, string name);

        /// <summary>
        /// del
        /// </summary>
        /// <param name="ProdCatergoryID"></param>
        void DelProdCatergoryByID(int TypeID);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ProdCatergoryID"></param>
        void UpdateProdCatergoryByID(int TypeID, string name, string parentName);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="parentName"></param>
        bool  IsExists(string name, string parentName);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IList<string> GetAllCatergoryList();
    }
}
